package com.furentech.iotserver.fa.dao;

import com.furentech.iotserver.fa.model.DqVehicleInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Mapper
@Repository
public interface DqVehicleInfoMapper {
    int deleteByPrimaryKey(Long id);

    int insert(DqVehicleInfo record);

    int insertSelective(DqVehicleInfo record);

    DqVehicleInfo selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(DqVehicleInfo record);

    int updateByPrimaryKey(DqVehicleInfo record);

    int updateStateByTerminalPhone(@Param("terminalPhone") String terminalPhone,
                                   @Param("state") Integer state);
}